print 'main, run lua init.lua'

function on_init(id)
    print('[lua] main oninit id: ' .. id)
    -- calls the function in c++
    local ping1 = sunnet.newservice("ping")
    -- local ping2 = sunnet.newservice("ping")
    -- print('[lua] new service ping: ' .. ping1)

    -- sunnet.send(ping1, ping2, "ping")

    local chat = sunnet.newservice("chat")
end

function on_exit()
    print '[lua] main on_exit'
end
